package com.heisen.uua;


import com.heisen.base.annotation.EnableXmBase;
import com.heisen.feignClient.annotation.EnableXMOauth2FeignClient;
import com.heisen.redis.annotation.EnableXmRedis;
import com.heisen.security.annotation.EnableXmAuthExceptionHandler;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

@EnableXmBase
@EnableXmRedis
@EnableDiscoveryClient
@SpringBootApplication
@EnableXmAuthExceptionHandler
@EnableGlobalMethodSecurity(prePostEnabled = true)  // 开启权限注解
@EnableXMOauth2FeignClient
@ComponentScan(basePackages = {"com.heisen.uua","com.heisen.systemapi"})
public class UuaApplication {
    public static void main(String[] args) {
        SpringApplication.run(UuaApplication.class, args);
    }

}
